<?php 
	include_once 'thuvienham.php';
	include_once 'thoigianhoc_db.php';

	class thoigianhoc_bs 
	{
		//------------------Fields [4]------------------
			// #0
		private $MaThoiGianHoc = "";
		public function SetMaThoiGianHoc($MaThoiGianHoc)       { $this->MaThoiGianHoc = $MaThoiGianHoc;       }
		public function GetMaThoiGianHoc()                     { return $this->MaThoiGianHoc;                 }
			// #1
		private $MaTrangThai = -1;
		public function SetMaTrangThai($MaTrangThai)           { $this->MaTrangThai = $MaTrangThai;           }
		public function GetMaTrangThai()                       { return $this->MaTrangThai;                   }
			// #2
		private $ChuThich = "";
		public function SetChuThich($ChuThich)                 { $this->ChuThich = $ChuThich;                 }
		public function GetChuThich()                          { return $this->ChuThich;                      }
			// #3
		private $SoTietMoiBuoiHoc = -1;
		public function SetSoTietMoiBuoiHoc($SoTietMoiBuoiHoc) { $this->SoTietMoiBuoiHoc = $SoTietMoiBuoiHoc; }
		public function GetSoTietMoiBuoiHoc()                  { return $this->SoTietMoiBuoiHoc;              }

		//------------------Method------------------
		public function Them()
		{
			$data = new thoigianhoc_db();
			return $data->Them($this->MaThoiGianHoc, $this->MaTrangThai, $this->ChuThich, $this->SoTietMoiBuoiHoc);
		}

		public function Xoa()
		{
			$data = new thoigianhoc_db();
			return $data->Xoa($this->MaThoiGianHoc);
		}

		public function CapNhat()
		{
			$data = new thoigianhoc_db();
			return $data->CapNhat($this->MaThoiGianHoc, $this->MaTrangThai, $this->ChuThich, $this->SoTietMoiBuoiHoc);
		}
		public function CapNhatMaTrangThai()
		{
			$data = new thoigianhoc_db();
			return $data->CapNhatMaTrangThai($this->MaThoiGianHoc, $this->MaTrangThai);
		}

		public function LayDanhSach()
		{
			$data = new thoigianhoc_db();
			return $data->LayDanhSach($this->MaThoiGianHoc, $this->MaTrangThai, $this->ChuThich, $this->SoTietMoiBuoiHoc);
		}

	}

